import request from '@/utils/request'

// 查询seo列表
export function listSeo(query) {
  return request({
    url: '/business/seo/list',
    method: 'get',
    params: query
  })
}

// 查询seo详细
export function getSeo(id) {
  return request({
    url: '/business/seo/' + id,
    method: 'get'
  })
}

// 新增seo
export function addSeo(data) {
  return request({
    url: '/business/seo',
    method: 'post',
    data: data
  })
}

// 修改seo
export function updateSeo(data) {
  return request({
    url: '/business/seo',
    method: 'put',
    data: data
  })
}

// 删除seo
export function delSeo(id) {
  return request({
    url: '/business/seo/' + id,
    method: 'delete'
  })
}
